<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../vue.js"></script>
</head>
<body>
    <div id="app">
        <h1>插值语法</h1>
        <h2>你好,{{name}}</h2>
        <hr>
        <h1>指令语法</h1>
        <a :href="a.url">点我去{{name}}</a>
    </div>
    
    <script>
        var app = new Vue({
            el:"#app",
            data:{ 
               name:"jack",
               a:{
                name:4399,
                url:"http://www.4399.com",
               }
            },
        });
    </script>
</body>
</html>